package org.guitycrown;


import io.airlift.airline.Cli;
import io.airlift.airline.Help;
import org.guitycrown.Command.NetworkCommand.PingCommand;
import org.guitycrown.Command.NetworkCommand.SnmpWalkCommand;

/**
 * Hello world!
 */
public class App {

    public static void main(String[] args) {
        Cli.CliBuilder<Runnable> builder = Cli.<Runnable>builder("git")
                .withDescription("the stupid content tracker")
                .withDefaultCommand(Help.class);

        builder.withGroup("network")
                .withDescription("simple network operation")
                .withDefaultCommand(Help.class)
                .withCommands(PingCommand.class, SnmpWalkCommand.class);

        Cli<Runnable> cliParser = builder.build();

        cliParser.parse(args).run();
    }
}
